Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
We could modify data on our server using POST, PUT, PATCH or DELETE, for example. 2 AJAX POST Example, the jQuery way. In jQuery AJAX JSON Example, I have explained how to handle GET and POST JSON requests using jQuery API. Public ActionResult PersonTest() {. Return View(); }. [HttpPost] public ActionResult PersonSubmit(Vh.Web.Models.Person person) {. System.Threading.Thread.Sleep(2000); /*simulating slow connection*/ /*. Do something with object person*/. Return Json(new {msg="Successfully added... jQuery ajax example with multidimensional JSON Response from the serverside. Today I’m gonna give you some code examples on how you can post a form and json data using jQuery AJAX. A PHP file will receive the posted data and print the response. I think this is one of the most useful code when you’re coding with jQuery... As of jQuery 1.5, all of jQuerys Ajax methods return a superset of the XMLHTTPRequest object. jQuery AJAX Methods. Example 1. Load data from the server using a HTTP POST request Это самый основной метод, а все последующие методы лишь обертки для метода jQuery.ajax. In previous examples i explained how to Call Asp.net server side function using Javascript and AJAX PageMethods without any PostBack and jQuery Производит запрос json-данных у сервера, методом GET, без перезагрузки страницы. Функция имеет несколько необязательных параметров. jQuery.getJSON(url,[data],[callback]):jqXHR1.0. url — url-адрес, по которому будет отправлен запрос. data — данные... Информация взята v3.kz |
загрузка...
|